import {Service, util} from "adajs";

class XxzlService extends Service {
    defaultData() {
        return {
            links:[
                [
                    {name:"1",link:"http://www.12371.cn/special/xxzd/",image:"/static/images/xxzl/19d.png"},
                    {name:"2",link:"http://www.12371.cn/special/xg19thjs/",image:"/static/images/xxzl/tsshzy.png"},
                ],
                [
                    {name:"3",link:"http://www.lgbzj.com/portal.php?mod=list&catid=814",image:"/static/images/xxzl/ljsm.png"},
                    {name:"4",link:"http://lxyz.12371.cn/",image:"/static/images/xxzl/lxyz.png"},
                ],
                [
                    {name:"5",link:"http://www.12371.cn/special/dnfg",image:"/static/images/xxzl/dnfg.png"},
                    {name:"5",link:"http://www.xinhuanet.com/politics/2018lh/mindex.htm",image:"/static/images/xxzl/qglh.png"}
                ]
            ]
        };
    }

    onupdate(current, data) {
        return util.extend(current, data);
    }
}

export default XxzlService;